Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
C#
1) 2D Graphics
2) ADO Database
3) Class Interface
4) Collections Data Structure
5) Components
6) Data Types
7) Date Time
8) Design Patterns
9) Development Class
10) Event
11) File Stream
12) Generics
13) GUI Windows Form
14) Internationalization
15) Language Basics
16) LINQ
17) Network
18) Office
19) Reflection
20) Regular Expressions
21) Security
22) Services Event
23) Thread
24) Web Services
25) Windows
26) WPF
27) XML
28) XML LINQ
GUI Windows Form
1) A dialog by user defined property
2) A form-based Windows Skeleton
3) A message box
4) A simple text editor
5) About Box Links
6) Add a Button
7) Add a Control Programmatically
8) Add a Main Menu
9) Add button to form
10) Add context menu to a form window
11) Add control to a form window
12) Add control to a window
13) Add controls to a form
14) Add controls to Tab page
15) Add Data to a ListView
16) Add Help text for MenuItem
17) Add icon to statusbar
18) Add icon to Tooltip
19) Add image Resource
20) Add image to Button
21) Add image to Label and set ImageAlign to MiddleRight
22) Add items to combo box
23) Add ListView column and insert ListView rows
24) Add new item to ListBox (text from TextBox)
25) Add Nodes to TreeView
26) Add Object based data to DataGrid
27) Add Object to ListBox
28) Add quotation char to Button text
29) Add ScrollBars to TextBox
30) Add shortcut key to a menu item
31) Add StatusPanels to StatusBar
32) Add to and get Image from Image List
33) Add Tooltip to a component
34) Add Tooltips for Label
35) Add two action listeners to a button
36) Agent Tryout
37) All cap text textbox
38) All font properties
39) All Mouse Cursors
40) Anchor Left and Top
41) Anchor Style
42) Anchor Two Buttons
43) Assign Form window default value
44) Auto scroll form window
45) AutoScroll Window
46) AutoScrollPosition
47) Background processing in a thread
48) Basic Printing
49) Begin Print
50) Bind key action to a form window
51) Bitmap Color
52) Bitmap Demo
53) Bitmap Other
54) Bitmap Viewer Host
55) BorderLess Window
56) Build Menu and context sensitive menu on your own
57) Button Action Demo
58) Button click action
59) Button FlatStyle Styles
60) Button Generator
61) Button Image, Size, Parent
62) Button Localtion
63) Button Name, TabIndex, Text
64) Calendar Control
65) Call ShowDialog method to show the dialog
66) Call ShowDialog() to display an OpenFileDialog
67) Cancel Event
68) Center form window
69) Change Button text
70) Change Form window background
71) Change Form window ownership
72) Change Image alignment inside a Control
73) Change LinkColor after it has been clicked
74) Change Standard Button Text Alignment
75) Change the background and text colors of a form using Color Dialog
76) Check the key in a resources file
77) CheckBox click (SelectedUnselected) event
78) CheckBox Image
79) CheckBox inside GroupBox
80) CheckBox Style
81) CheckBox with Label
82) CheckButton on a Form
83) CheckedChanged Event
84) CheckedListBox Demo 2
85) CheckedListBox Item Check event
86) Clear all items in a ListBox
87) Click on me to change the color
88) Clip Text
89) Clipboard Viewer (All Formats)
90) Color Converter
91) Color Dialog and Font Dialog
92) Color Fill dialog
93) Color Scroll Dialog Box
94) ComboBox Selected Item changed event
95) ComboBox selected Item changed event 1
96) ComboBox selected item changed event 2
97) ComboBox with color cell renderer
98) Control Docking
99) Control Enabled
100) Control Paint Form
101) Control Print
102) Control renderer Demo
103) Control style
104) Convert TextBox input to double value
105) Convert value from Numeric Dropdown to Int
106) Copying from the Clipboard
107) Copying to the Clipboard
108) Create Graphics Object from form window handle
109) Creating a menu on the fly
110) Creating a system tray icon for your application
111) Creating an event for a component
112) Custom TreeView
113) Data Checker
114) Data ListBox Binding 3
115) DataGrid Binding
116) Date Time Picker 2
117) Date Time Picker Demo
118) DateTimePicker Format
119) DateTimePicker Value changed event (Selected event)
120) Define Print Settings
121) Define user control
122) Define your own dialog box and get user input
123) Demonstrates creating a form in a console program
124) Demonstrates using an OpenFileDialog to prompt for a file name, and to open a file
125) Directory tree and property grid
126) Directory Tree Host
127) Display color dialog and get user selection
128) Display current time on statusbar
129) Display Directory info in a ListView
130) Display menu item alert message on the statusbar
131) Display message in StatusBar
132) Display Question messagebox and check its result
133) Dock Style
134) Dock Two Buttons
135) Docking Demo
136) Drag and drop image to another window
137) Drag and drop inside a container
138) Drag and drop the PictureBox
139) Drag and drop Tree Node
140) Dragging and dropping between ListView
141) Dragging Images
142) Draw a Custom Control
143) Draw image based on the window size
144) Dynamic Menu
145) Editable Binding
146) Editor Form
147) Error Provider to validate the text in a TextBox
148) Error Provider Validation
149) Extends ListViewItem
150) Fake Drag And Drop
151) FileOk Action
152) Fill XML data to ListBox
153) Floating Toolbar
154) Focus Form
155) Folder Browser based on ListView
156) Font
157) Font list
158) Font Menu
159) Font with different size
160) Form Anchor
161) Form Focus event
162) Form for data input
163) Form hide
164) Form Key Press action
165) Form Menu
166) Form Mouse down action
167) Form OnMove event
168) Form OnResize
169) Form Ownership
170) Form Paint event
171) Form resize and redraw
172) Form window closing event
173) Form Window event
174) Form window load event
175) Form with list, button
176) Format And Parse
177) Format And Parse Image
178) FormStartPosition CenterScreen
179) Full screen and KeyEvent and MouseEvent
180) Get a list of files from a folder based on the result of a FolderBrowserDialog
181) Get all controls on a form window
182) Get all system installed font
183) Get input from password textbox
184) Get selected checkbox list items
185) Get Selected item from ComboBox
186) Get Selected Node Full Path
187) Get selected radio button
188) Get the font in a FontDialog
189) Get value from MonthCalendar control
190) Get value from TextBox
191) Grid Printing
192) Group Box mouse enter event
193) GUI and timer
194) Hand Cursor
195) Handle button messages
196) Hatch Brush Menu
197) Help icon
198) Help Menu
199) Help Test
200) Hex View
201) Hot Track Button Host
202) HTML Split Window
203) Image Clip
204) Image Drop
205) Image List Example
206) ImageList for ToolBar
207) Information message box
208) InstalledPrinters
209) Irregularly Shaped Forms Demo
210) Irregularly Shaped Forms demo 1
211) Is CheckBox checked
212) Italic User Message Dialog
213) Keyboard event and TextBox
214) Label
215) Label auto resize
216) Label grows as the inner text
217) Label, TextBox and Button
218) Layout Manager
219) LinkLabel Clicked event
220) List Box click event
221) ListBox
222) ListBox and Metafile Enum
223) ListBox Demo 2
224) ListBox Objects
225) ListBox selected Item changed event
226) ListView Country
227) ListView Example
228) ListView Item clicked event
229) Load all system installed fonts
230) Load animated cursor
231) Load cursor file( cur)
232) Load image to ImageBox
233) Load image to RadioButton
234) Login from
235) Make a new resources file
236) Make a resx file
237) Makes a new window out of a graphics path that has been traced on this forms space
238) Marquee Label Host
239) Masked TextBox Host
240) MaskedTextBox with MaskInputRejected event
241) Maximized MDI window at startup
242) MDI and Dock
243) MDI Basics
244) MDI form
245) MDI Relatives
246) MdiLayout Cascade
247) MdiLayout TileHorizontal
248) MdiLayout TileVertical
249) Menu Text Provider Host
250) Message box builder
251) MessageBox Options
252) MessageBox with OK button and information icon
253) Microsoft Win32 OpenFileDialogSaveFileDialog
254) MinimumWindow Size
255) Mouse action
256) Mouse event on a control
257) My Clock Form
258) My Web Browser
259) New Font(fontRegular, FontStyle Italic)
260) New Font(strFont, fSize)
261) New Font(Times New Roman, 10, FontStyle Italic)
262) New MenuItem
263) New TextBox(), Localtion, Name, TabIndex, Text
264) Non rectangle Form window
265) Non-resizable form
266) Not in TaskBar
267) Numeric value based Up Down (Spinner)
268) Object List Binding
269) Object ListBox Data Binding 2
270) On Mouse Wheel
271) OnClick event
272) One Panel with Splitter
273) OnInputLanguageChanged
274) OnKeyDown event
275) OnMouseEnter, OnMouseHover, OnMouseLeave event
276) Open File Dialog with file types
277) Output color by R G B value for a Bitmap
278) Owner Drawn Menu
279) Owner Drawn Menu Control
280) Paint Owner-Draw Buttons
281) Panel and form dock pad
282) Paste Image to RichTextBox
283) Picture Button
284) PictureBox Click event
285) PictureBox Demo
286) PictureBox Scroll Text
287) PictureBox visible and invisible
288) Popup button, Flat button and Image button
289) Popup Menu action
290) Popup Text
291) Print Dialogs
292) Print Events
293) Print out Form size and position related information
294) Printer Caps 1
295) Printer Caps 2
296) Printer Caps 3
297) Printer Caps 4
298) Printer Caps 5
299) Printer Caps 6
300) PrinterName, IsValid printer
301) PrinterResolutions
302) PrinterSettings Kind
303) ProgressBar Host
304) ProgressBar in C#
305) Radio button check changed event
306) Radio Button click event
307) Radio Group
308) RadioButton check state change event
309) RadioButton on a form
310) RadioButton With Img
311) RadioCheck MenuItem
312) Read an XML Document and display the file as a Tree
313) Reading from a String Resource
314) Reading resources
315) Recursively load Directory info into TreeView
316) Remove item if one is selected from ListBox
317) Resource file generator
318) Rich-Text Paste
319) RichTextBox Font bold, italic
320) RichTextBox Zoom
321) RichTextBox Zooming
322) RTFBox Test
323) Scroll event
324) Scroll Shapes
325) Scrollable Form
326) Scrollable Panel
327) ScrollBars Demo
328) Scrolling (AutoScrollMinSize)
329) Scrolling Picture
330) Self Placing Window (save form window related information to Registry)
331) Set CheckFileExists to true
332) Set ClientSize to change the form window size
333) Set ColumnHeader for ListView
334) Set control border style
335) Set DateTimePicker Min Date and Max Date
336) Set Filter
337) Set focus to the previous instance of the specified program
338) Set Font size, family for a RichTextBox
339) Set form window cursor
340) Set Form window cursor to wait cursor
341) Set Form window title and center the Form window on the desktop
342) Set InitialDirectory
343) Set InitialDirectory for SaveFileDialog
344) Set Label Background, foreground color and border style
345) Set Label Border style to FixedSingle
346) Set MDI parent window
347) Set MenuItem ShortCut
348) Set password mask char
349) Set ResizeRedraw property
350) Set Text to Statusbar
351) Set TopIndex to auto scroll ListBox
352) Show the use of some of the OpenFile dialog box
353) Shows browsing for a file
354) Shows browsing for a set of files
355) Simple Editor based on TextBox
356) Simple form
357) Simple Form Validation
358) Simple Report Printer
359) Simple WebBrowser
360) Simplest form code
361) Single Item Data Binding
362) SizeMode in PictureBox
363) SMK Agent
364) Sort a List View by Any Column
365) Split Container(Panel)
366) Split Three Across
367) Split Three Frames
368) Split Two Proportional
369) Starting and stopping a thread
370) Status bar
371) Status Strip Example
372) StatusBar Example
373) StatusBar with two panels
374) Steps through the common dialogs Does nothing else useful
375) String based DomainUpDown (Spinner)
376) Subclass CheckBox
377) Subclass MenuItem
378) Subclass NativeWindow
379) Subclass Panel
380) Subclass PictureBox
381) Subclass System Windows Forms UserControl to create custom control
382) Subclass TreeView
383) System Fonts
384) System Tray App
385) TabControl
386) Talking to a visual element in a background thread
387) Text Changed event
388) Text on Baseline
389) TextBox and button on form
390) TextBox and ListBox
391) TextBox Demo
392) TextBox location
393) TextBox value validation Demo
394) The read-only property control
395) Thread and UI Demo
396) Timer based animation for font
397) ToolBar Example
398) ToolBar float window
399) ToolStripMenuItem in action
400) Tooltips Demo
401) Tooltips for Button
402) Transparent form
403) Transparent form window
404) Transparent Forms
405) Transparent window
406) Transparent window and screen capture
407) TreeView Data Binding
408) TreeView Demo
409) TreeView Drag And Drop
410) TreeView Example
411) TreeView ImageIndex
412) Try all AnchorStyles
413) Two Panels with Splitter
414) UI Print
415) Uncloseable event
416) Unicode encoding
417) UpDown Control
418) UpDown Derived
419) Use ContentAlignment
420) Use Control GetType to check the control type
421) Use DialogResult property in Form
422) Use Filter in SaveFileDialog to filter file extension
423) Use Font from Form to paint string on a form
424) Use Label and Timer to create a Clock
425) Use Label as status bar
426) Use ListView to diaplay folder info and double click to enter that directory
427) Use ListView to display File info
428) Use ListView to display file name and double click the name to execute that file
429) Use ListViewItem to display file information
430) Use PageSetupDialog
431) Use RadioButton to control the ListView display style
432) Use ScrollBar to control the picture size
433) Use StatusBarPanel
434) Use ToolStripMenuItem to set font size
435) Use TrackBar to control label color
436) User Events
437) Using GroupBoxes and Panels to hold buttons
438) Using PrintPreviewDialog
439) Using RadioButtons to set message window options
440) Using ToolBarButton
441) VScrollBar ValueChanged
442) Web Browser usual actions
443) WebBrowser in action
444) Windows Explorer-Like Program
445) Windows Forms Getting Started
446) WindowsXP controls
447) Writing a resource file programmatically
448) Yes No Cancel